#include <iostream>
#include <math.h>
using namespace std;

int main()
{
    string palabra;
    char letra;
    int i;
    i=0;
    cout<<"Ingresar palabra"<<endl;
    cin>>palabra;
    cout<<"Ingresar letra"<<endl;
    cin>>letra;
    while(i<palabra.length())
    {
        if(palabra[i]==letra)
        {
            cout<<i+1<<endl;
            break;

        }
        i=i+1;
    }
    if(i==palabra.length())
    cout<<"NO"<<endl;






return 1;


}
